package com.qiangqiang.resoldhouse.entity;

import lombok.Data;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * Description: resoldhouse
 * Create by jeff on 2018-8-14 11:54
 */
@Data
public class NewsSelect {

    //排序方式， default或rank
    private String order;

    //标题 模糊查询
    private String title;

    //类型 查询
    private String type;

    //经纪人审核状态 查询
    private Set<String> status;

    //查询对应的条件是否存在，用来将查询条件回显回页面
    public boolean statusContain(String key){
        if(status != null && status.contains(key)) return true;
        else return false;
    }
    public boolean typeContain(String key){
        if(type != null && type.contains(key)) return true;
        else return false;
    }
    public boolean titleContain(String key){
        if(title != null && title.contains(key)) return true;
        else return false;
    }
}
